package com.wandian.login.mvvm.userxy;

import android.os.Bundle;

import androidx.databinding.DataBindingUtil;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.mylib.libcore.config.RouterConfig;
import com.mylib.libcore.mvvm.BaseMVVMActivity;
import com.mylib.libcore.utils.StatusBarUtils;
import com.wandian.login.R;
import com.wandian.login.databinding.LgActivityUserxyBinding;

/**
 * @author Administrator
 * @date 2019/12/18-14:28
 * @description 用户协议
 **/
@Route(path = RouterConfig.ROUTER_ACTIVITY_USER_XY)
public class UserXYActivity extends  BaseMVVMActivity<UserXYActivityViewModel>  {
    private LgActivityUserxyBinding dataBinding;

    @Override
    public void init(Bundle savedInstanceState) {
        dataBinding = DataBindingUtil.setContentView(this, R.layout.lg_activity_userxy);
        dataBinding.setLifecycleOwner(this);
        dataBinding.setViewModel(mViewModel);
        StatusBarUtils.with(this,false)
                .setIsActionBar(false)
                .clearActionBarShadow()
                .setDrawable(getResources().getDrawable(R.drawable.sys_color))
                .init();

        dataBinding.bindSysLayout.toolBarTvTitle.setText("用户协议及隐私政策");
        initClink();
    }
    private void initClink(){
        dataBinding.bindSysLayout.toolBarIvBack.setOnClickListener(v -> finish());
    }

}
